package com.arpa.ntocc.common.mapper;

import com.arpa.ntocc.common.domain.dto.DepartmentDTO;
import com.arpa.ntocc.common.domain.entity.Department;
import com.arpa.ntocc.common.domain.vo.DepartmentVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 部门信息 Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2019-12-09
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 查询列表
     * @param departmentDTO
     * @return
     */
    List<DepartmentVO> queryList(DepartmentDTO departmentDTO);

    /**
     * 查询合计,包含总数
     * @param departmentDTO
     * @return
     */
    DepartmentVO queryListSum(DepartmentDTO departmentDTO);
}
